<div class="form">
<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm',array(
	'id'=>'parts-form',
	'enableAjaxValidation'=>false,
        'method'=>'post',
	'type'=>'horizontal',
	'htmlOptions'=>array(
		'enctype'=>'multipart/form-data'
	)
)); ?>
     	<fieldset>
		<legend>
			<p class="note">Fields with <span class="required">*</span> are required.</p>
		</legend>

	<?php echo $form->errorSummary($model,'Opps!!!', null,array('class'=>'alert alert-error span12')); ?>
        		
   <div class="control-group">		
			<div class="span4">

	<?php echo $form->textFieldRow($model,'part_code',array('class'=>'span5','maxlength'=>100)); ?>

	<?php echo $form->textFieldRow($model,'name',array('class'=>'span5','maxlength'=>-1)); ?>

	<?php echo $form->textFieldRow($model,'lead_time_days',array('class'=>'span5','maxlength'=>19)); ?>

	<?php echo $form->textFieldRow($model,'unit_code',array('class'=>'span5','maxlength'=>50)); ?>

	<?php echo $form->textFieldRow($model,'description',array('class'=>'span5','maxlength'=>-1)); ?>

	<?php echo $form->textFieldRow($model,'id_categories',array('class'=>'span5','maxlength'=>19)); ?>

	<?php echo $form->textFieldRow($model,'id_subcategories',array('class'=>'span5','maxlength'=>19)); ?>

	<?php echo $form->textFieldRow($model,'id_section',array('class'=>'span5','maxlength'=>19)); ?>

	<?php echo $form->textFieldRow($model,'id_process',array('class'=>'span5','maxlength'=>19)); ?>

	<?php echo $form->textFieldRow($model,'id_status',array('class'=>'span5','maxlength'=>19)); ?>

	<?php echo $form->textFieldRow($model,'item_id',array('class'=>'span5','maxlength'=>19)); ?>

	<?php echo $form->textFieldRow($model,'status_part',array('class'=>'span5','maxlength'=>5)); ?>

	<?php echo $form->textFieldRow($model,'supplier_code',array('class'=>'span5','maxlength'=>19)); ?>

	<?php echo $form->textFieldRow($model,'part_maker',array('class'=>'span5','maxlength'=>50)); ?>

	<?php echo $form->textFieldRow($model,'min_order_qty',array('class'=>'span5','maxlength'=>19)); ?>

	<?php echo $form->textFieldRow($model,'re_order_level',array('class'=>'span5','maxlength'=>19)); ?>

	<?php echo $form->textFieldRow($model,'unit_of_measure',array('class'=>'span5','maxlength'=>50)); ?>

	<?php echo $form->textFieldRow($model,'section_name',array('class'=>'span5','maxlength'=>50)); ?>

	<?php echo $form->textFieldRow($model,'price',array('class'=>'span5')); ?>

	<?php echo $form->textFieldRow($model,'currency',array('class'=>'span5','maxlength'=>50)); ?>

	<?php echo $form->textFieldRow($model,'current_stock',array('class'=>'span5','maxlength'=>19)); ?>

	<?php echo $form->textFieldRow($model,'status_po',array('class'=>'span5','maxlength'=>50)); ?>

	<?php echo $form->textFieldRow($model,'part',array('class'=>'span5','maxlength'=>50)); ?>

	<?php echo $form->textFieldRow($model,'item_code',array('class'=>'span5','maxlength'=>19)); ?>

	<?php echo $form->textFieldRow($model,'actual_qty',array('class'=>'span5','maxlength'=>19)); ?>

	<?php echo $form->textFieldRow($model,'status_stock',array('class'=>'span5','maxlength'=>50)); ?>

	<?php echo $form->textFieldRow($model,'max_stock',array('class'=>'span5','maxlength'=>19)); ?>

	<?php echo $form->textFieldRow($model,'min_stock',array('class'=>'span5','maxlength'=>19)); ?>

	<?php echo $form->textFieldRow($model,'stock_taking',array('class'=>'span5','maxlength'=>50)); ?>

	<?php echo $form->textFieldRow($model,'mrp',array('class'=>'span5','maxlength'=>50)); ?>

	<?php echo $form->textFieldRow($model,'jumlah',array('class'=>'span5','maxlength'=>19)); ?>

	<?php echo $form->textFieldRow($model,'currency_code',array('class'=>'span5','maxlength'=>50)); ?>

	<?php echo $form->textFieldRow($model,'inspection_received',array('class'=>'span5','maxlength'=>19)); ?>

	<?php echo $form->textFieldRow($model,'inspection_rejected',array('class'=>'span5','maxlength'=>19)); ?>

	<?php echo $form->textFieldRow($model,'is_new_item',array('class'=>'span5')); ?>

	<?php echo $form->textFieldRow($model,'link_part_code',array('class'=>'span5','maxlength'=>50)); ?>

	<?php echo $form->textFieldRow($model,'part_kind',array('class'=>'span5','maxlength'=>50)); ?>

                        </div>   
  </div>

	<div class="form-actions">
		<?php $this->widget('bootstrap.widgets.TbButton', array(
			'buttonType'=>'submit',
			'type'=>'primary',
                        'icon'=>'ok white',  
			'label'=>$model->isNewRecord ? 'Create' : 'Save',
		)); ?>
              <?php $this->widget('bootstrap.widgets.TbButton', array(
			'buttonType'=>'reset',
                        'icon'=>'remove',  
			'label'=>'Reset',
		)); ?>
	</div>
</fieldset>

<?php $this->endWidget(); ?>

</div>
